import service from "../request/request";

export const EditAdminMessageService = (password,adminId)=>{
    return service({
        method:'POST',
        url:'/admincharge/meta/',
        data:{
            pwd:password,
            id:adminId
        }
    })
}

export const GetAllAdminMessageService = (pageNum, pageSize,keyword)=>{
    return service({
        method:'GET',
        url:'/admincharge/adminmessage/',
        params: {
            ...keyword,
            currentPage: pageNum,
            pageSize: pageSize
        },
    })
}

export const ChangeStatus = (username,val) =>{
    return service({
        method:'POST',
        url:'/admincharge/changeAdminStatus/',
        params:{
            username:username,
            status:val
        }
    })
}

export const ChangeSuper = (username,val) =>{
    return service({
        method:'POST',
        url:'/admincharge/changeAdminSuper/',
        params:{
            username:username,
            is_super:val
        }
    })
}